package JTCPconnection;

/**
 *
 * @author M-R-D
 */
public class TCPconnectionException extends Exception
{
    /**
	 * 
	 */
	private static final long	serialVersionUID	= -5955002935605775494L;
	private boolean _canIgnore;

    /**
     * Throw a new ignorable TCPconnectionException with a message.
     * @param message
     * The message to give.
     */
    public TCPconnectionException(String message)
    {
        this(message, true);
    }
    /**
     * Throw a new possibly ignorable TCPconnectionException with a message.
     * @param message
     * The message to give.
     * @param canIgnore
     * If set to true, flag this exception as an ignorable one.
     */
    public TCPconnectionException(String message, boolean canIgnore)
    {
        super(message);
        _canIgnore = canIgnore;
    }

    public boolean getCanIgnore()
    {
        return _canIgnore;
    }
}
